package com.dingwen.treasure.task.quartz.feign;

import com.dingwen.treasure.base.constant.ServerConstant;
import com.dingwen.treasure.base.pojo.vo.Result;
import com.dingwen.treasure.task.quartz.feign.fallback.TreasureBusinessFeignClientFallback;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;

/**
 * 　TreasureBusinessFeignClient: open feign 调用： task --> business
 * 　@author dingwen
 * 　@date 2022/8/10
 */
@FeignClient(name = ServerConstant.TREASURE_BUSINESS,fallbackFactory = TreasureBusinessFeignClientFallback.class)
public interface TreasureBusinessFeignClient {

    /**
     * 消息投递
     *
     * @return {@link Result}<{@link String}>
     */
    @PutMapping("message/deliver")
    @ApiOperation(value = "消息投递")
    Result<String> feignTreasureMessageDeliver();
}
